package com.peak.distribution.vo.goods;

import com.peak.distribution.enums.Constants;
import com.peak.spring.boot.api.web.IdVo;
import com.peak.spring.boot.core.mapper.Format;
import com.peak.spring.boot.core.mapper.Format.TransferFormat;
import com.peak.spring.boot.core.mapper.Transfer;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class DisGoodsPriceRuleVo extends IdVo {

	private static final long serialVersionUID = Constants.DISTRIBUTION_VERSION;
	
	/** 区间内价格 */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer price;

	/** 最小数量 */
	private Integer minQuantity;

	/** 最大数量 */
	private Integer maxQuantity;
	
	/** 商品ID */
	@Transfer(mapping = "goods.id")
	private Integer goodsId;
}
